package jobs.controller;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import jobs.model.Attainment;
import jobs.model.dao.AttainmentDAO;
import jobs.pattern.design.ControllerComposite;
import jobs.pattern.design.DAOComposite;

/**
 *
 * @author administrador
 */
@ManagedBean(name = "attainments")
@SessionScoped
public class AttainmentController extends ControllerComposite<Attainment> {

    @EJB
    private AttainmentDAO dao;

    public AttainmentController() {
        super(Attainment.class);
    }

    @Override
    public DAOComposite<Attainment> getDAO() {
        return dao;
    }
}
